var gStartAngleBracket = "<";
var gCloseAngleBracket = ">";
var gBackSlash = "/";
var gXmlStr = "";


function addNode(pElementName,pElementValue) {
	addOpeningTag(pElementName);
	addData(pElementValue);
	addClosingTag(pElementName);
}

function addOpeningTag(pElementName) {
	gXmlStr = gXmlStr + gStartAngleBracket;
	gXmlStr = gXmlStr + pElementName;
	gXmlStr = gXmlStr + gCloseAngleBracket;
}

function addClosingTag(pElementName) {
	gXmlStr = gXmlStr + gStartAngleBracket + gBackSlash;
	gXmlStr = gXmlStr + pElementName;
	gXmlStr = gXmlStr +  gCloseAngleBracket;
}

function addData(pData) {
	gXmlStr = gXmlStr + pData;
}

function resetCXML() {
	gXmlStr = "";
}

function getCXML() {
	return gXmlStr;
}




